package com.sams.service;

import java.util.List;

import javax.servlet.http.HttpSession;

import com.github.pagehelper.PageInfo;
import com.sams.entity.CountrySub;
import com.sams.entity.User;

/**
 * 国家资助管理的service
 * 
 * @author 您好！小马！
 *
 */
public interface CountrySubService {
	// 添加功能
	public int add(CountrySub stu)throws Exception;

	// 删除功能
	public int delete(int id);

	// 修改功能
	public int update(CountrySub stu)throws Exception;

	// 查询单个学生功能
	public CountrySub findById(int id);

	// 查询身份证是否重复
	public String selectIdCard(String idcard, String project,Integer schid,Integer id);

	// 总的分页查询(包含条件查询)
	public PageInfo<CountrySub> listStu(Integer currentPage, String name, String idcard, 
			Integer schid, String project,User user,Integer zid);

	public boolean insertBatch(List<CountrySub> stuList) throws Exception ;

	public boolean updateFile(CountrySub sub);

	public void deleteBatch(String ids);

}
